package com.czkt.springboot_mybatis_test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.springboot_mybatis_test.entity.CstCustomer;
import com.czkt.springboot_mybatis_test.entity.vo.CstCustomerBasDict;
import com.czkt.springboot_mybatis_test.mapper.CstCustomerMapper;
import com.czkt.springboot_mybatis_test.service.ICstCustomerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
@Service
public class CstCustomerServiceImpl extends ServiceImpl<CstCustomerMapper, CstCustomer> implements ICstCustomerService {

    @Resource
    CstCustomerMapper cstCustomerMapper;

    @Override
    public List<CstCustomerBasDict> cusTomerBas(String custName, String custRegion, Integer pageIndex, Integer pageSize) {
        return cstCustomerMapper.cusTomerBas(custName, custRegion, pageIndex, pageSize);
    }

    @Override
    public Integer cusTomerBasCount(String custName, String custRegion) {
        return cstCustomerMapper.cusTomerBasCount(custName, custRegion);
    }
}
